package cc.momas.momall.web.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import cc.momas.common.vo.EasyUITreeNode;
import cc.momas.momall.service.IItemCatService;

@Controller
public class ItemCatController {

	@Autowired
	private IItemCatService itemCatSvc;
	
	
	@RequestMapping("/item/cat/list")
	@ResponseBody
	private List<EasyUITreeNode> getItemCatList(@RequestParam(value="id",defaultValue="0")Long parentId){
		//调用服务查询节点列表
		List<EasyUITreeNode> list = itemCatSvc.getItemCatList(parentId);
		return list;
	}
}